/* Copyright 2009 (c) ENSI de Bourges
 * 		88 boulevard Lahitolle, 18020 Bourges Cedex, France
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * \file table-utilities.h
 * \brief Header for the functions related to LiveSecurity's frames table
 * \author Steve Dodier <sidnioulz@gmail.com>
 *
 * This header file contains functions useful for manipulating the GtkTable
 * containing all the frames in LiveSecurity's GUI.
 */
#ifndef __TABLE_UTILITIES_H
#define __TABLE_UTILITIES_H
#ifdef __cplusplus
extern "C" {
#endif

#include <gtk/gtk.h>

#include "frame-common.h"

int table_size_changed (GtkTable *); //connecter au g_connectbn,;

//int table_get_nb_needed_slots (frame_t *);

int slot_data_resize (guint, guint, guint, guint);

frame_t *slot_data_get (guint, guint);
void slot_data_set (guint, guint, frame_t *);

int table_get_optimal_nb_cols (GtkTable *);
int table_get_optimal_nb_rows (GtkTable *);

int table_frame_size_changed (GtkWidget *, frame_t *, guint, guint, guint, guint);

int table_add (GtkWidget *, frame_t *);
int table_remove (GtkWidget *, frame_t *);
int table_swap_children (GtkWidget *, frame_t *, frame_t *);

//table_size_up
//table_size_down


#ifdef __cplusplus
}
#endif
#endif
